import http from './index'
import http1 from './indexH'

export const getList = (params) => http({
  url: '/device-os/device/list',
  method: 'GET',
  params,
})
export const selectDescList = (params) => http({
  url: '/device-os/device/selectDescList',
  method: 'GET',
  params,
})
export const getDeviceInfo = (params) => http({
  url: '/device-os/device/getDeviceInfo',
  method: 'GET',
  params,
})

export const create = (data) => http({
  url: '/device-os/device/add',
  method: 'POST',
  data,
})

export const update = (data) => http({
  url: '/device-os/device/update',
  method: 'POST',
  data,
})
export const upgradeVersion = (data) => http({
  url: '/device-os/device/upgradeVersion',
  method: 'POST',
  data,
})

export const del = (data) => http({
  url: '/device-os/device/delete',
  method: 'POST',
  data,
})

export const bindArea = (data) => http({
  url: '/device-os/device/bindarea',
  method: 'POST',
  data,
})

export const upgrade = (data) => http({
  url: '/device-os/device/checkUpgrade',
  method: 'POST',
  data,
})
export const lineAccess = (data) => http({
  url: '/device-os/device/upOfflineAccess ',
  method: 'POST',
  data,
})

export const restart = (data) => http({
  url: '/device-os/device/restart',
  method: 'POST',
  data,
})

export const open = (data) => http({
  url: '/device-os/device/open',
  method: 'POST',
  data,
})
export const openTime = (data) => http({
  url: '/device-os/device/sendServerTime',
  method: 'POST',
  data,
})
export const reset = (data) => http({
  url: '/device-os/device/reset',
  method: 'POST',
  data,
})


export const IDCard = (params) => http({
  url: 'http://127.0.0.1:24010/ZKIDROnline/IDFP',
  method: 'GET',
  params,
})
